package com.lidong.lowcode.model.service;

import com.lidong.config.domain.gloabreturn.ResponseInfo;
import com.lidong.lowcode.base.domain.TreeVO;

import java.util.List;
import java.util.Map;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 7/21/2022 9:02 PM
 */
public interface BaseGroupService {

    /**
     * 根据类型获取分组树
     *
     * @param groupType
     * @return ResponseInfo
     */
    ResponseInfo<List<TreeVO>> getBaseGroupTreeByType(String groupType);

    /**
     * 保存数据源
     *
     * @param paramMap
     * @return ResponseInfo
     */
    ResponseInfo<String> saveBaseGroup(Map<String, String> paramMap);

    /**
     * 删除分组
     *
     * @param paramMap 参数 Map
     * @return ResponseInfo
     */
    ResponseInfo<String> deleteBaseGroup(Map<String, Object> paramMap);
}
